package cn.snoworld.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonAlias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("link")
@ApiModel(value = "快捷链接",description = "快速跳转到一些网页")
public class Link {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("快捷链接名称")
    private String name;

    @ApiModelProperty("快捷链接地址")
    private String url;

    @ApiModelProperty("快捷链接描述信息")
    @JsonAlias("desc")
    private String description;
}

